package com.sgb.goods.entity;

import com.contrarywind.interfaces.IPickerViewData;
import com.google.gson.annotations.SerializedName;

import java.util.List;

public class BrandEntity extends RecordPointEntity {

    /** 品牌名称 */
    @SerializedName("name")
    public String name;
    /** 自定义品牌 */
    @SerializedName("childList")
    public List<BrandChild> childList;

    /** 自定义品牌 */
    public static class BrandChild extends RecordPointEntity implements IPickerViewData {
        @SerializedName("name")
        public String name;
        @SerializedName("id")
        public String id;

        @Override
        public String getPickerViewText() {
            return name;
        }
    }
}
